import { apiRequest } from "../utils/request";
//获取好图分享分类
export function getCategoryList() {
  return apiRequest({
    url: `/enjoy/pictureCategory/getCategoryList`,
    method: "get",
  });
}
//获取好图分享分类
export function getPictureList(data: any) {
  return apiRequest({
    url: `/enjoy/picture/getPictureList`,
    method: "get",
    data,
  });
}
//喜欢  取消喜欢
export function pictureLike(data: any) {
  return apiRequest({
    url: `/enjoy/picture/like`,
    method: "post",
    data,
  });
}
//获取banner
export function getBannerList(data: any) {
  return apiRequest({
    url: `/promotion/banner/list`,
    method: "get",
    data,
  });
}
//获取榜单
export function getRankList() {
  return apiRequest({
    url: `/member/photography/getRankList`,
    method: "get",
  });
}

//获取活动
export function photographyActivity(data: any) {
  return apiRequest({
    url: `/promotion/photographyActivity/list`,
    method: "get",
    data,
  });
}
//优秀作品列表（分页）
export function getExcellentList(data: any) {
  return apiRequest({
    url: `/member/photography/getExcellentList`,
    method: "get",
    data,
  });
}

//喜欢，取消喜欢
export function photographyLike(data: any) {
  return apiRequest({
    url: `/member/photography/like`,
    method: "post",
    data,
  });
}
//报名投稿
export function signUp(data: any) {
  return apiRequest({
    url: `/member/photography/signUp`,
    method: "post",
    data,
  });
}
//发表作品
export function publish(data: any) {
  return apiRequest({
    url: `/member/photography/publish`,
    method: "post",
    data,
  });
}
//压缩图片
export function compressPhoto(data: any) {
  return apiRequest({
    url: `/external/photo/compress`,
    method: "post",
    data,
  });
}
//文字识别
export function ocrPhoto(data: any) {
  return apiRequest({
    url: `/external/photo/ocr`,
    method: "post",
    data,
  });
}
//AI智能抠图
export function cutoutPhoto(data: any) {
  return apiRequest({
    url: `/external/photo/cutout`,
    method: "post",
    data,
  });
}
//AI漫画风
export function cartoonPhoto(data: any) {
  return apiRequest({
    url: `/external/photo/cartoon`,
    method: "post",
    data,
  });
}
//智能卡通头像
export function cartoonAvatar(data: any) {
  return apiRequest({
    url: `/external/photo/cartoonAvatar`,
    method: "post",
    data,
  });
}
//获取免费剩余次数
export function getFreeCount(data: any) {
  return apiRequest({
    url: `/external/photo/getFreeCount`,
    method: "get",
    data,
  });
}
//增加使用记录
export function addUseRecord(data: any) {
  return apiRequest({
    url: `/external/photo/addUseRecord`,
    method: "post",
    data,
  });
}
//根据活动id获取作品
export function getActivityList(data: any) {
  return apiRequest({
    url: `/member/photography/getActivityList`,
    method: "get",
    data,
  });
}
//我的投稿
export function myContribute(data: any) {
  return apiRequest({
    url: `/member/photography/myContribute`,
    method: "get",
    data,
  });
}
